package com.xywy.beautyand;

import android.os.Bundle;
import android.view.animation.AlphaAnimation;
import android.view.animation.Animation;
import android.view.animation.Animation.AnimationListener;
import android.widget.RelativeLayout;
import android.widget.TextView;

import com.xywy.beautyand.base.BaseActivity;

public class SplashAct extends BaseActivity {

	int[] img = { R.drawable.img1, R.drawable.img2, R.drawable.img3,
			R.drawable.img4, R.drawable.img5, R.drawable.img6, R.drawable.img7 };

	@Override
	protected void initView(Bundle savedInstanceState) {
		setContentView(R.layout.activity_main);
		RelativeLayout logo = (RelativeLayout) findViewById(R.id.logo);
		TextView text = (TextView) findViewById(R.id.text);
		text.setText("美肤");

		AlphaAnimation aa = new AlphaAnimation(0.1f, 1.0f);
		aa.setDuration(3000);
		logo.setAnimation(aa);
		aa.setAnimationListener(new AnimationListener() {

			@Override
			public void onAnimationStart(Animation animation) {

			}

			@Override
			public void onAnimationRepeat(Animation animation) {

			}

			@Override
			public void onAnimationEnd(Animation animation) {
				enterActivity(MainActivity.class);
			}
		});
	}

	@Override
	protected void initListener() {

	}

	@Override
	protected void initData() {

	}

}
